package com.eenie.onecloud.services;

import com.eenie.onecloud.res.GoodDetailRes;
import com.eenie.onecloud.res.GoodListRes;
import com.eenie.onecloud.res.NormalRes;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface OneCloudMallApi {

    @POST("goods/list")
    Call<GoodListRes> fetchGoodList(@Body RequestBody body);

    @POST("goods/detail")
    Call<GoodDetailRes> fetchGoodDetail(@Body RequestBody body);

    @POST("order/submitorder")
    Call<NormalRes> submitOrders(@Body RequestBody body);


    @GET("https://sc.ftqq.com/SCU28063T73ac6fedcd50f10ef3c6c0cf904a828c5b2380c79c0f1.send")
    Call<ResponseBody> pushNotice(@Query("text") String text,@Query("desp") String desp);







}
